﻿using System;
using System.Threading.Tasks;

namespace BaseSyntax.ThreadTest
{
	public class TaskBase:ITest
	{
		public const int RepeatNum = 1000;
		
		public void Test()
		{
			Task task = Task.Run(PrintPlus);
			for (int i = 0; i < RepeatNum; i++)
			{
				Console.Write('-');
			}
			task.Wait();
		}
		
		void PrintPlus()
		{
			for (int i = 0; i < RepeatNum; i++)
			{
				Console.Write('+');
			}
		}
	}
}